#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
inline void keep_window_open() {char ch; cin >> ch; }

int main() {
vector<int> c;
vector<int> v;
for (int j=0; j<100; ++j) {j=0; c.push_back(j);}
while(1){
  int i;
  cin >> i;
  if (0==i) break;
   v.push_back(i);
   c[v[i]]+=1;
}
for (int m=0; m<c.size(); ++m){
   if(c[m]!=0)
   cout << "c[" << m << "]=" << c[m] << '\n';
}
}
